package com.wz.customerserv.feign.fallback;

import com.wz.customerserv.feign.ProducerService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

@Slf4j
@Component
public class ProducerServiceFallback implements ProducerService {

    @Override
    public String addPrefix(String name) {
        log.info("由于请求异常，将执行服务降级");
        return "请求异常";
    }
}
